package com.zbs.framework.dao.function.view;

import com.zbs.framework.dao.permission.view.PermissionBasicView;
import com.zbs.framework.swagger.annotations.ApiModel;
import com.zbs.framework.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
@NoArgsConstructor
@ApiModel
public class FunctionNodeView {

    @ApiModelProperty("id")
    private Long id;
    /**
     * 标识符
     */
    @ApiModelProperty("标识符")
    private String identifier;
    /**
     * 功能名
     */
    @ApiModelProperty("功能名")
    private String name;
    /**
     * 描述
     */
    @ApiModelProperty("描述")
    private String description;

    /**
     * 编码
     */
    @ApiModelProperty("编码")
    private String treeCode;
    /**
     * 父级ID
     */
    @ApiModelProperty("父级ID")
    private Long parentId;
    /**
     * 等级
     */
    @ApiModelProperty("等级")
    private Integer level;
    /**
     * 关联权限
     */
    @ApiModelProperty("关联权限")
    private List<PermissionBasicView> permInfos;
    /**
     * 权限
     */
    @ApiModelProperty("权限")
    private List<FunctionView> children;

}
